package com.sanjin.convert;

import com.sanjin.entity.ParkLot;
import com.sanjin.entity.ParkSpace;
import com.sanjin.form.ParkLotForm;
import com.sanjin.form.ParkSpaceForm;
import com.sanjin.vo.PageVo;
import org.springframework.beans.BeanUtils;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: sanjin
 * @date: 2019/5/5 14:08
 */
@Component
public class ParkSpaceConvert {
    public ParkSpace parkSpaceForm2ParkSpace(ParkSpaceForm parkSpaceForm) {
        ParkSpace parkSpace = new ParkSpace();
        BeanUtils.copyProperties(parkSpaceForm,parkSpace);
        return parkSpace;
    }

}
